const Koa = require('koa')
const app = new Koa()

//总耗时中间件
app.use(require('./middleware/duration'))

//响应头中间件
app.use(require('./middleware/header'))


//数据处理中间件
app.use(require('./middleware/data'))

//端口
app.listen(9000, () => {
  console.log('当前服务运行在127.0.0.1:9000');
})

